package uk.co.accolade.clash.core;

public class UserChangesDiff {

    private UserChanges addedChanges;
    private UserChanges removedChanges;

    public static UserChangesDiff diff(UserChanges oldChanges, UserChanges newChanges) {
        UserChangesDiff diff = new UserChangesDiff();
        diff.addedChanges = oldChanges.findNewChanges( newChanges );
        diff.removedChanges = oldChanges.findRemovedChanges( newChanges );
        return diff;
    }

    public UserChanges getAddedChanges() {
        return addedChanges;
    }

    public UserChanges getRemovedChanges() {
        return removedChanges;
    }
}
